package cz.muni.fi.pa165.api.dto;

/**
 * Class representing a transfer object for Picker entity
 *
 * @author Matej Cimbora
 */
public class PickerDTO {

    private Long id;
    private String nickName;
    private String firstName;
    private String lastName;
    private String pickerInfo;
    private String password;
    private UserRole userRole;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }
    
    public String getPassword(){
        return password;
    }
    
    public void setPassword(String password){
        this.password = password;
    }

    public UserRole getUserRole(){
        return userRole;
    }
    
    public void setUserRole(UserRole userRole){
        this.userRole = userRole;
    }
    
    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getPickerInfo() {
        return pickerInfo;
    }

    public void setPickerInfo(String pickerInfo) {
        this.pickerInfo = pickerInfo;
    }

    @Override
    public String toString() {
        return nickName;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        if (!(object instanceof PickerDTO)) {
            return false;
        }
        PickerDTO other = (PickerDTO) object;
        if ((this.id == null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }
    
    public enum UserRole {
        ROLE_USER, ROLE_ADMIN
    }
}
